import React from "react"

// 创建类组件
// 继承React.Component父类
class HelloComponent extends React.Component {
  // 必须提供render方法且有返回值
  render () {
    return <div>This is a class Component</div>
  }
}

function App () {
  return (
    <div>
      {/* 渲染类组件 */}
      <HelloComponent />
      <HelloComponent></HelloComponent>
    </div>
  )
}

export default App
